#!/usr/bin/python
# -*- coding:utf-8 -*-
# @author  : micah
# @time    :  
# @function: 
# @version :


import time
from selenium import webdriver
from selenium.webdriver.common.by import By


driver = webdriver.Chrome()
driver.get('https://www.douban.com/')
iframe_data = driver.find_element(By.XPATH, '//*[@id="anony-reg-new"]/div/div[1]/iframe')
driver.switch_to.frame(iframe_data)
driver.find_element(By.CLASS_NAME, 'account-tab-account').click()
driver.find_element(By.ID, 'username').send_keys('110')
time.sleep(3)
